# Author:Zengzihao
# 购物车
'''username = input("请输入您的支付宝余额：")
appstore = "NIKEDUNK||PUMA||CDG||NIKEDUNKSB||AIRFOCE||CUCCI"
print(appstore)'''
goods = [
  ["1001","NIKEair","888"],
  ["1002","NIKE DUNK SB","1999"],
  ["1003","iphone13 pro","8888"],
  ["1004","周杰伦门票","1111"],
  ["1005","林俊杰门票","1111"],
]
user_shop_list = []
支付宝余额 = input("请输入您的余额")
info = '''---goods list---
%s
%s
%s
%s
%s
'''%(goods[0],goods[1],goods[2],goods[3],goods[4],)
print(info)
user_input_ID = input("请输入商品的ID")
for i in goods:
  print(good)
  # ID是否正确
if user_input_ID == goods[0]:
  # 判断余额是否够用
  if int(good[2]) < 支付宝余额:
    # 把商品加进list
  user_shop_list.append(good)
  break
# 扣除支付宝余额
  else:
  print("您所输入的ID不存在，请看上栏已有商品编号")
print(user_shop_list)
